projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbd7282
)
dm: x86: Support pre-reloc malloc()
author
Simon Glass
<
[email protected]
>
Fri, 10 Oct 2014 13:49:16 +0000
(07:49 -0600)
committer
Simon Glass
<
[email protected]
>
Fri, 24 Oct 2014 01:45:28 +0000
(19:45 -0600)
Add support for this by reserving a block of memory below global_data.
Signed-off-by: Simon Glass <
[email protected]
>
arch/x86/cpu/start.S
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/start.S
b/arch/x86/cpu/start.S
index 71cab22e2a95008a4b72ad0b95dfbe79f13a066d..338bab19e471fdd3f4ab088aa999afeb2e10145e 100644
(file)
--- a/
arch/x86/cpu/start.S
+++ b/
arch/x86/cpu/start.S
@@
-97,6
+97,13
@@
car_init_ret:
/* Reserve space for global descriptor table */
subl $X86_GDT_SIZE, %esp
+#if defined(CONFIG_SYS_MALLOC_F_LEN)
+ subl $CONFIG_SYS_MALLOC_F_LEN, %esp
+ movl %eax, %edx
+ addl $GD_MALLOC_BASE, %edx
+ movl %esp, (%edx)
+#endif
+
/* Align temporary global descriptor table to 16-byte boundary */
andl $0xfffffff0, %esp